import MyLinkQueue.MyLinkQueue;

public class Test {
    public static void main(String[] args) {
        MyLinkQueue<Integer> myLinkQueue = new MyLinkQueue<Integer>();
        myLinkQueue.offer(1);
        myLinkQueue.offer(2);
        myLinkQueue.offer(3);
        myLinkQueue.offer(4);

        System.out.println(myLinkQueue.peek());//1
        System.out.println(myLinkQueue.poll());//1
        System.out.println(myLinkQueue.poll());//2
    }
}
